/**
 *
 * Copyright by Samuel Castro & Joaquim Fonseca, 2011
 * All Rights Reserved
 *
 * NOTES:
 * Please do not redistribute this plugin without my permission
 * Plugin made for private use only
 *
 */
package com.SySammy.SdCurrency;

import com.SySammy.SdCurrency.Handlers.BankHandler;
import com.SySammy.SdCurrency.Handlers.CurrencyHandler;
import java.util.ArrayList;
import org.bukkit.entity.Player;

public class sdCCommandExport {

    BankHandler BH = new BankHandler();
    CurrencyHandler CH = new CurrencyHandler();

    //BANK METHODS
    public boolean HasLoan(String p) {
        return BH.HasLoan(p);
    }

    public void MakeLoan(Player p, int amount, int time, int ID, int IDRep) {
        BH.MakeLoan(p, amount, time, ID, IDRep);
    }

    public int GetloanQnt(String p) {
        return BH.GetloanQnt(p);
    }

    public int GetloanToPay(String p) {
        return BH.GetloanToPay(p);
    }

    public int GetloanRepaid(String p) {
        return BH.GetloanRepaid(p);
    }

    public int GetloanTime(String p) {
        return BH.GetloanTime(p);
    }

    public int GetloanTimeLeft(String p) {
        return BH.GetloanTimeLeft(p);
    }

    public int GetloanID(String p) {
        return BH.GetloanID(p);
    }

    public int GetloanIDRep(String p) {
        return BH.GetloanIDRep(p);
    }

    public void RepayLoan(Player p, int amount) {
        BH.RepayLoan(p, amount);
    }

    public void SetTimeLeft(String p, int amount) {
        BH.SetTimeLeft(p, amount);
    }

    public void RemoveLoan(String p) {
        BH.RemoveLoan(p);
    }

    // ACCOUNT METHODS
    public boolean hasAccount(String p) {
        return CH.hasAccount(p);
    }

    public void MakeAccount(Player p, ArrayList<Integer> initialvalues) {
        CH.MakeAccount(p, initialvalues);
    }

    public int GetMoney(String p) {
        return CH.GetMoney(p);
    }

    public int GetBones(String p) {
        return CH.GetBones(p);
    }

    public int GetSlimes(String p) {
        return CH.GetSlimes(p);
    }

    public String GetCurrency() {
        return CH.GetCurrency();
    }

    public void SetMoney(String p, int amount) {
        CH.SetMoney(p, amount);
    }

    public boolean HasMoney(String p, int amount) {
        return CH.HasMoney(p, amount);
    }

    public void GiveMoney(String p, int amount) {
        CH.GiveMoney(p, amount);
    }

    public void TakeMoney(String p, int amount) {
        CH.TakeMoney(p, amount);
    }
    //currency base

    public int CurrencyBase(int percentage) {
        int base = (int) (100 * ((float) percentage / 100));
        return base;
    }
}
